package me.hai.uitest.contoller;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.http.HttpStatus;
import org.springframework.http.ResponseEntity;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import me.hai.uitest.service.TestService;

@RestController
public class TestController {

	@Autowired
	TestService testService;

	@RequestMapping(value = "/test")
	public ResponseEntity<String> readUserInfo() {

		String users = testService.hello();

		return new ResponseEntity<String>(users, HttpStatus.OK);

	}
}
